--- demos/programs/Exm/simple_app/Makefile.am.orig	2008-10-31 21:38:06.000000000 +0700
+++ demos/programs/Exm/simple_app/Makefile.am		2011-01-19 15:05:18.935928589 +0700
@@ -15,4 +15,4 @@ INCLUDES = -I$(srcdir)/../../../../lib \
            -I$(top_builddir)/lib \
            ${X_CFLAGS}
 LDADD = ../../../../lib/Xm/libXm.la \
-        ../../../lib/Exm/libExm.a
+        ../../../lib/Exm/libExm.a -lX11

